// ## common 通用
import Index from '../pages/index/Index.svelte';
import About from '../pages/index/About.svelte';

// 音频识别
import AudioRecognitionIndex from '../pages/audio-recognition/Index.svelte';
import AudioRecognitionList from '../pages/audio-recognition/List.svelte';
import AudioRecognitionShow from '../pages/audio-recognition/Show.svelte';
import AudioRecognitionCreate from '../pages/audio-recognition/Create.svelte';

// 音频合成
import AudioSynthesisIndex from '../pages/audio-synthesis/Index.svelte';
import AudioSynthesisList from '../pages/audio-synthesis/List.svelte';
import AudioSynthesisShow from '../pages/audio-synthesis/Show.svelte';
import AudioSynthesisCreate from '../pages/audio-synthesis/Create.svelte';

// 视频生成
import VideoGenerationIndex from '../pages/video-generation/Index.svelte';
import VideoGenerationList from '../pages/video-generation/List.svelte';
import VideoGenerationShow from '../pages/video-generation/Show.svelte';
import VideoGenerationCreate from '../pages/video-generation/Create.svelte';

// 视频翻译
import VideoTranslationIndex from '../pages/video-translation/Index.svelte';
import VideoTranslationList from '../pages/video-translation/List.svelte';
import VideoTranslationShow from '../pages/video-translation/Show.svelte';
import VideoTranslationCreate from '../pages/video-translation/Create.svelte';

// 测试
import TestResponseAsync from '../pages/test/response/Async.svelte';
import TestResponseSse from '../pages/test/response/Sse.svelte';
import TestResponseStream from '../pages/test/response/Stream.svelte';
import TestResponseWebsocket from '../pages/test/response/Websocket.svelte';
import TestResponseGrpc from '../pages/test/response/Grpc.svelte';
import TestResponseGraphql from '../pages/test/response/Graphql.svelte';
import TestResponseGraphql2 from '../pages/test/response/Graphql2.svelte';
import TestResponseMqtt from '../pages/test/response/Mqtt.svelte';
import TestResponseAmqp from '../pages/test/response/Amqp.svelte';
import TestResponseWebrtc from '../pages/test/response/Webrtc.svelte';
import TestResponseServepush from '../pages/test/response/Servepush.svelte';

export const routes = [
  // ## common 通用
  // { path: '/login', component: LoginByPassword },
  // { path: '/login-by-password', component: LoginByPassword },
  // { path: '/login-by-verification-code', component: LoginByVerificationCode },
  // { path: '/login-by-phone-number', component: LoginByPhoneNumber },
  // { path: '/login-by-wechat', component: LoginByWechat },
  // { path: '/login-by-qq', component: LoginByQQ },
  // { path: '/login-by-dingtalk', component: LoginByDingtalk },
  // { path: '/login-by-lark', component: LoginByLark },
  // { path: '/login-by-github', component: LoginByGithub },
  
  // ## 基础页面
  { path: '/', component: Index },
  { path: '/about', component: About },

  // ## 音频识别
  { path: '/audio-recognition/', component: AudioRecognitionIndex },
  { path: '/audio-recognition/list', component: AudioRecognitionList },
  { path: '/audio-recognition/show', component: AudioRecognitionShow },
  { path: '/audio-recognition/create', component: AudioRecognitionCreate },

  // ## 音频合成
  { path: '/audio-synthesis/', component: AudioSynthesisIndex },
  { path: '/audio-synthesis/list', component: AudioSynthesisList },
  { path: '/audio-synthesis/show', component: AudioSynthesisShow },
  { path: '/audio-synthesis/create', component: AudioSynthesisCreate },

  // ## 视频生成
  { path: '/video-generation/', component: VideoGenerationIndex },
  { path: '/video-generation/list', component: VideoGenerationList },
  { path: '/video-generation/show', component: VideoGenerationShow },
  { path: '/video-generation/create', component: VideoGenerationCreate },

  // ## 视频翻译
  { path: '/video-translation/', component: VideoTranslationIndex },
  { path: '/video-translation/list', component: VideoTranslationList },
  { path: '/video-translation/show', component: VideoTranslationShow },
  { path: '/video-translation/create', component: VideoTranslationCreate },
  
  // ## 测试
  { path: '/test/async', component: TestResponseAsync },
  { path: '/test/sse', component: TestResponseSse }, // ok
  { path: '/test/stream', component: TestResponseStream }, // ok
  { path: '/test/websocket', component: TestResponseWebsocket }, // ok
  { path: '/test/grpc', component: TestResponseGrpc }, // nok
  { path: '/test/graphql', component: TestResponseGraphql }, // nok
  { path: '/test/graphql2', component: TestResponseGraphql2 }, // nok
  { path: '/test/mqtt', component: TestResponseMqtt },
  { path: '/test/amqp', component: TestResponseAmqp },
  { path: '/test/webrtc', component: TestResponseWebrtc }, // nok
  { path: '/test/servepush', component: TestResponseServepush },
];
